[1402] in Moira
Re: workaround duplicate strings
daemon@ATHENA.MIT.EDU (Dan Winship)
Tue Mar 7 20:55:18 2000
Message-Id: <200003080155.UAA461481@steve-dallas.mit.edu>
To: Garry Zacheiss <zacheiss@MIT.EDU>
cc: Jonathon Weiss <jweiss@MIT.EDU>, moiradev@MIT.EDU
In-Reply-To: Your message of "Tue, 07 Mar 2000 18:39:13 EST."
<200003072339.SAA14254@sweet-transvestite.mit.edu>
Date: Tue, 07 Mar 2000 20:55:12 -0500
From: Dan Winship <danw@MIT.EDU>
> I was getting to that. This prevents moirad from creating strings
> with leading/trailing whitespace in the first place.
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.
> Consider this a workaround, since fixing mrbackup/mrrestore has been
> been deemed difficult.
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.
-- Dan