Changeset 988 for vendor/current/source4/cluster/cluster.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/cluster/cluster.c
r740 r988 24 24 #include "cluster/cluster_private.h" 25 25 #include "librpc/gen_ndr/misc.h" 26 #include "librpc/gen_ndr/server_id 4.h"26 #include "librpc/gen_ndr/server_id.h" 27 27 28 28 static struct cluster_ops *ops; … … 51 51 create a server_id for the local node 52 52 */ 53 struct server_id cluster_id(uint64_t id, uint32_t id2)53 struct server_id cluster_id(uint64_t pid, uint32_t task_id) 54 54 { 55 55 cluster_init(); 56 return ops->cluster_id(ops, id, id2);56 return ops->cluster_id(ops, pid, task_id); 57 57 } 58 59 60 /*61 return a server_id as a string62 */63 const char *cluster_id_string(TALLOC_CTX *mem_ctx, struct server_id id)64 {65 cluster_init();66 return ops->cluster_id_string(ops, mem_ctx, id);67 }68 69 58 70 59 /* 71 60 open a temporary tdb in a cluster friendly manner 72 61 */ 73 struct tdb_wrap *cluster_tdb_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbname, int flags)62 struct db_context *cluster_db_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbbase, int flags) 74 63 { 75 64 cluster_init(); 76 return ops->cluster_ tdb_tmp_open(ops, mem_ctx, lp_ctx, dbname, flags);65 return ops->cluster_db_tmp_open(ops, mem_ctx, lp_ctx, dbbase, flags); 77 66 } 78 67 … … 81 70 register a callback function for a messaging endpoint 82 71 */ 83 NTSTATUS cluster_message_init(struct messaging_context *msg, struct server_id server,72 NTSTATUS cluster_message_init(struct imessaging_context *msg, struct server_id server, 84 73 cluster_message_fn_t handler) 85 74 {
Note:
See TracChangeset
for help on using the changeset viewer.