Rev 708: a useful hack for checking correct behaviour of recovery
in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Fri Jan 4 22:36:21 GMT 2008
------------------------------------------------------------
revno: 708
revision-id:tridge at samba.org-20080104223621-67b3uhfbx0ceakkn
parent: tridge at samba.org-20080104223543-42zhss8rkvk1dz7u
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.kantana
timestamp: Sat 2008-01-05 09:36:21 +1100
message:
a useful hack for checking correct behaviour of recovery
modified:
server/ctdb_freeze.c ctdb_freeze.c-20070512051503-935zdtyuqknqnhmo-1
=== modified file 'server/ctdb_freeze.c'
--- a/server/ctdb_freeze.c 2007-07-10 05:29:31 +0000
+++ b/server/ctdb_freeze.c 2008-01-04 22:36:21 +0000
@@ -249,6 +249,10 @@
*/
int32_t ctdb_control_thaw(struct ctdb_context *ctdb)
{
+#if 0
+ /* this hack can be used to get a copy of the databases at the end of a recovery */
+ system("mkdir -p /var/ctdb.saved; /usr/bin/rsync --delete -a /var/ctdb/ /var/ctdb.saved/$$ 2>&1 > /dev/null");
+#endif
talloc_free(ctdb->freeze_handle);
ctdb->freeze_handle = NULL;
ctdb_call_resend_all(ctdb);
More information about the samba-cvs
mailing list