Rev 303: added a control to get the local vnn in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Tue May 15 00:17:18 GMT 2007
------------------------------------------------------------
revno: 303
revision-id: tridge at samba.org-20070515001716-tndy0z6bafkvdc3v
parent: tridge at samba.org-20070515001659-uwyvianttzhe05r8
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-05-15 10:17:16 +1000
message:
added a control to get the local vnn
modified:
common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
=== modified file 'common/ctdb_control.c'
--- a/common/ctdb_control.c 2007-05-14 03:48:14 +0000
+++ b/common/ctdb_control.c 2007-05-15 00:17:16 +0000
@@ -132,13 +132,14 @@
return 0;
}
- case CTDB_CONTROL_GET_RECMASTER: {
+ case CTDB_CONTROL_GET_RECMASTER:
return ctdb->recovery_master;
- }
- case CTDB_CONTROL_GET_PID: {
+ case CTDB_CONTROL_GET_PID:
return getpid();
- }
+
+ case CTDB_CONTROL_GET_VNN:
+ return ctdb->vnn;
case CTDB_CONTROL_CONFIG: {
CHECK_CONTROL_DATA_SIZE(0);
=== modified file 'include/ctdb_private.h'
--- a/include/ctdb_private.h 2007-05-12 11:25:26 +0000
+++ b/include/ctdb_private.h 2007-05-15 00:17:16 +0000
@@ -352,6 +352,7 @@
CTDB_CONTROL_SET_RECMASTER,
CTDB_CONTROL_FREEZE,
CTDB_CONTROL_THAW,
+ CTDB_CONTROL_GET_VNN,
};
More information about the samba-cvs
mailing list