Differences From
Artifact [d3489f68a4]:
675 675 terra srv:start(iname: rawstring)
676 676 self:conprep(lib.store.prepmode.full)
677 677 self.cfg:init(self)
678 678 self.pool:init(self.cfg.poolinitsz)
679 679 var dbbind = self:conf_get(&self.pool, 'bind')
680 680 if iname == nil then iname = lib.proc.getenv('parsav_instance') end
681 681 if iname == nil then
682 - self.id = self.cfg.instance.ptr;
682 + self.id = self.cfg.instance:cdup()
683 683 -- let this leak -- it'll be needed for the lifetime of the process anyway
684 684 else self.id = iname end
685 685
686 686 if iname ~= nil then
687 687 lib.report('parsav instance "',iname,'" starting')
688 688 end
689 689
................................................................................
774 774 self.pol_reg = self:cfbool('policy-self-register', false)
775 775 self.pol_autoherald = self:cfbool('policy-self-herald', true)
776 776
777 777 do self.credmgd = false
778 778 var fr = self._pool:frame()
779 779 var sreg = self:cfstr('credential-store')
780 780 if sreg:ref() then
781 - if lib.str.cmp(sreg.ptr, 'managed') == 0
781 + if sreg:cmp('managed')
782 782 then self.credmgd = true
783 783 else self.credmgd = false
784 784 end
785 785 self._pool:reset(fr)
786 786 end end
787 787
788 788 self.maxupsz = self:cffsz('maximum-artifact-size', [1024 * 100]) -- 100 kilobyte default