[1404] in Moira
Re: workaround duplicate strings
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Wed Mar 8 00:16:10 2000
Message-Id: <200003080516.AAA15183@sweet-transvestite.mit.edu>
To: Dan Winship <danw@MIT.EDU>
Cc: moiradev@MIT.EDU
In-Reply-To: Your message of "Tue, 07 Mar 2000 20:55:12 EST."
<200003080155.UAA461481@steve-dallas.mit.edu>
Date: Wed, 08 Mar 2000 00:16:05 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>
>> Hm... I suppose the fact that we've been accidentally doing this via
>> mrbackup/mrrestore all along implies that there's nothing in the db
>> that needs strings that start with a space.
That was my assessment; I spent some time thinking about cases where
we might need strings with leading/trailing spaces, and couldn't come up
with any.
>> If you want to fix mrbackup, all you have to do is change the call to
>> strtrim in db2bkup.awk to call some other function (defined in
>> dump_db.pc and prototyped in dump_db.h) that only trims the trailing
>> whitespace. I think.
I'd convinced myself this wouldn't work for some reason, but I'm
finding myself less confident now. I can look into this route if
someone stronly feels it's better than changing moirad.
Garry