Rev 150: use shutdown in more tests in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Wed Apr 18 05:27:38 GMT 2007
------------------------------------------------------------
revno: 150
revision-id: tridge at samba.org-20070418052738-c581c86e6c27b24e
parent: tridge at samba.org-20070418052726-e7908fbec401dbef
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Wed 2007-04-18 15:27:38 +1000
message:
use shutdown in more tests
modified:
tests/ctdb_bench.c ctdb_bench.c-20061219052637-2liagoglohxb6p7s-1
tests/ctdb_fetch.c ctdb_fetch.c-20070405031748-f7gslozfj3rwh5ie-1
tests/ctdb_messaging.c ctdb_messaging.c-20070411034205-6d6vne56pbih2x1p-1
=== modified file 'tests/ctdb_bench.c'
--- a/tests/ctdb_bench.c 2007-04-17 12:16:50 +0000
+++ b/tests/ctdb_bench.c 2007-04-18 05:27:38 +0000
@@ -259,6 +259,7 @@
bench_ring(ctdb, ev);
/* shut it down */
- talloc_free(ctdb);
+ ctdb_shutdown(ctdb);
+
return 0;
}
=== modified file 'tests/ctdb_fetch.c'
--- a/tests/ctdb_fetch.c 2007-04-18 01:20:24 +0000
+++ b/tests/ctdb_fetch.c 2007-04-18 05:27:38 +0000
@@ -247,7 +247,8 @@
printf("DATA:\n%s\n", (char *)call.reply_data.dptr);
- /* shut it down */
- talloc_free(ctdb);
+ /* go into a wait loop to allow other nodes to complete */
+ ctdb_shutdown(ctdb);
+
return 0;
}
=== modified file 'tests/ctdb_messaging.c'
--- a/tests/ctdb_messaging.c 2007-04-17 12:27:17 +0000
+++ b/tests/ctdb_messaging.c 2007-04-18 05:27:38 +0000
@@ -141,6 +141,7 @@
}
/* shut it down */
- talloc_free(ctdb);
+ ctdb_shutdown(ctdb);
+
return 0;
}
More information about the samba-cvs
mailing list