s3: Make ctdbd_messaging_send_blob available in non-clustered mode
authorVolker Lendecke <vl@samba.org>
Wed, 4 Apr 2012 09:56:06 +0000 (11:56 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Apr 2012 08:21:02 +0000 (10:21 +0200)
This will avoid the need for some #ifdefs

source3/lib/ctdbd_conn.c

index de9920ae2664b2a733449221f92422f343bbf57f..8219bd281be3482bbd6f3dce1149cf4afcbb1a3b 100644 (file)
 #include "includes.h"
 #include "util_tdb.h"
 #include "serverid.h"
+#include "ctdbd_conn.h"
 
 #ifdef CLUSTER_SUPPORT
 
-#include "ctdbd_conn.h"
 #include "ctdb_packet.h"
 #include "messages.h"
 
@@ -1797,4 +1797,13 @@ NTSTATUS ctdb_unwatch(struct ctdbd_connection *conn)
        return status;
 }
 
+#else
+
+NTSTATUS ctdbd_messaging_send_blob(struct ctdbd_connection *conn,
+                                  uint32 dst_vnn, uint64 dst_srvid,
+                                  const uint8_t *buf, size_t buflen)
+{
+       return NT_STATUS_NOT_IMPLEMENTED;
+}
+
 #endif