1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-include: Remove unused definitions

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2015-10-29 17:36:23 +11:00 committed by Martin Schwenke
parent 3b71d05927
commit 03c69d8400
2 changed files with 1 additions and 7 deletions

View File

@ -59,9 +59,6 @@ struct ctdb_call_info {
uint32_t status; /* optional reply status - defaults to zero */
};
#define CTDB_ERR_INVALID 1
#define CTDB_ERR_NOMEM 2
/*
ctdb flags
*/
@ -207,9 +204,6 @@ struct ctdb_call_info {
/* send a broadcast to selected connected nodes */
#define CTDB_MULTICAST 0xF0000005
/* the key used for transaction locking on persistent databases */
#define CTDB_TRANSACTION_LOCK_KEY "__transaction_lock__"
/* the key used to store persistent db sequence number */
#define CTDB_DB_SEQNUM_KEY "__db_sequence_number__"

View File

@ -64,7 +64,7 @@ static int incr_func(struct ctdb_call_info *call)
if (call->record_data.dsize == 0) {
call->new_data = talloc(call, TDB_DATA);
if (call->new_data == NULL) {
return CTDB_ERR_NOMEM;
return ENOMEM;
}
call->new_data->dptr = talloc_size(call, 4);
call->new_data->dsize = 4;