diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-06-10 17:02:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:14 -0500 |
commit | 15553d6327a3aecdd2b0b94a3656d04bf4106323 (patch) | |
tree | 70c68418228511624da346028927c87a38cc00a3 /source/librpc/ndr | |
parent | 0442e680eeacb56852e200fdf6f78e4972ecad68 (diff) | |
download | samba-15553d6327a3aecdd2b0b94a3656d04bf4106323.tar.gz samba-15553d6327a3aecdd2b0b94a3656d04bf4106323.tar.xz samba-15553d6327a3aecdd2b0b94a3656d04bf4106323.zip |
r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.
There should be no changes to the non-cluster case, it does survive make
test on my laptop.
It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.
Phew...
Volker
Diffstat (limited to 'source/librpc/ndr')
-rw-r--r-- | source/librpc/ndr/ndr_misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/librpc/ndr/ndr_misc.c b/source/librpc/ndr/ndr_misc.c index a0796924a2a..17bba77a01c 100644 --- a/source/librpc/ndr/ndr_misc.c +++ b/source/librpc/ndr/ndr_misc.c @@ -244,6 +244,10 @@ NTSTATUS ndr_push_server_id(struct ndr_push *ndr, int ndr_flags, const struct se NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, (uint32_t)r->pid)); +#ifdef CLUSTER_SUPPORT + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, + (uint32_t)r->vnn)); +#endif } if (ndr_flags & NDR_BUFFERS) { } @@ -256,6 +260,9 @@ NTSTATUS ndr_pull_server_id(struct ndr_pull *ndr, int ndr_flags, struct server_i uint32_t pid; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &pid)); +#ifdef CLUSTER_SUPPORT + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->vnn)); +#endif r->pid = (pid_t)pid; } if (ndr_flags & NDR_BUFFERS) { @@ -268,5 +275,8 @@ void ndr_print_server_id(struct ndr_print *ndr, const char *name, const struct s ndr_print_struct(ndr, name, "server_id"); ndr->depth++; ndr_print_uint32(ndr, "id", (uint32_t)r->pid); +#ifdef CLUSTER_SUPPORT + ndr_print_uint32(ndr, "vnn", (uint32_t)r->vnn); +#endif ndr->depth--; } |