val += state->change_val;
PUSH_LE_U32(v_store, 0, val);
- state->status = dbwrap_record_store(rec, data, TDB_REPLACE);
+ state->status = dbwrap_record_store(rec, data, DBWRAP_REPLACE);
}
static NTSTATUS dbwrap_change_uint32_atomic_action(struct db_context *db,
val += state->change_val;
PUSH_LE_U32(v_store, 0, val);
- state->status = dbwrap_record_store(rec, data, TDB_REPLACE);
+ state->status = dbwrap_record_store(rec, data, DBWRAP_REPLACE);
}
static NTSTATUS dbwrap_change_int32_atomic_action(struct db_context *db,
abort();
}
- status = dbwrap_record_store(rec, obj->data, TDB_INSERT);
+ status = dbwrap_record_store(rec, obj->data, DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(rec);
return status;
abort();
}
- status = dbwrap_record_store(rec, mem->data, TDB_INSERT);
+ status = dbwrap_record_store(rec, mem->data, DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(rec);
return status;
};
NTSTATUS status;
- status = dbwrap_record_store(br_lck->record, data, TDB_REPLACE);
+ status = dbwrap_record_store(br_lck->record,
+ data,
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("store returned %s\n", nt_errstr(status)));
smb_panic("Could not store byte range mode entry");
return -1;
}
- status = dbwrap_record_store(rec, data, TDB_MODIFY);
+ status = dbwrap_record_store(rec, data, DBWRAP_MODIFY);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Could not store the new record: %s\n",
nt_errstr(status)));
value = dbwrap_record_get_value(orig_rec);
- status = dbwrap_record_store(new_rec, value, TDB_INSERT);
+ status = dbwrap_record_store(new_rec, value, DBWRAP_INSERT);
TALLOC_FREE(new_rec);
}
val = make_tdb_data(blob.data, blob.length);
- status = dbwrap_record_store(global->db_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(global->db_rec, val, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DBG_WARNING("key '%s' store - %s\n",
tdb_data_dbg(key),
}
val = make_tdb_data(blob.data, blob.length);
- status = dbwrap_record_store(rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(rec, val, DBWRAP_REPLACE);
TALLOC_FREE(blob.data);
if (!NT_STATUS_IS_OK(status)) {
DBG_WARNING("key '%s' store - %s\n",
}
val = make_tdb_data(blob.data, blob.length);
- status = dbwrap_record_store(global->db_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(global->db_rec, val, DBWRAP_REPLACE);
TALLOC_FREE(blob.data);
if (!NT_STATUS_IS_OK(status)) {
DBG_WARNING("key '%s' store - %s\n",
ptr = session;
val = make_tdb_data((uint8_t const *)&ptr, sizeof(ptr));
- status = dbwrap_record_store(local_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(local_rec, val, DBWRAP_REPLACE);
TALLOC_FREE(local_rec);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(session);
}
val = make_tdb_data(blob.data, blob.length);
- status = dbwrap_record_store(global->db_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(global->db_rec, val, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DBG_WARNING("key '%s' store - %s\n",
tdb_data_dbg(key),
ptr = tcon;
val = make_tdb_data((uint8_t const *)&ptr, sizeof(ptr));
- status = dbwrap_record_store(local_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(local_rec, val, DBWRAP_REPLACE);
TALLOC_FREE(local_rec);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(tcon);
}
val = make_tdb_data(blob.data, blob.length);
- status = dbwrap_record_store(db_rec, val, TDB_REPLACE);
+ status = dbwrap_record_store(db_rec, val, DBWRAP_REPLACE);
TALLOC_FREE(db_rec);
if (!NT_STATUS_IS_OK(status)) {
DBG_ERR("dbwrap_record_store - %s\n", nt_errstr(status));
counters[pnn]++;
if (verbose) DEBUG(1, ("storing data\n"));
- status = dbwrap_record_store(rec, data, TDB_REPLACE);
+ status = dbwrap_record_store(rec, data, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Failed to store record\n"));
if (!no_trans) {
dbuf.dptr = (unsigned char *)locks;
dbuf.dsize += sizeof(lock);
- status = dbwrap_record_store(locked, dbuf, TDB_REPLACE);
+ status = dbwrap_record_store(locked, dbuf, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
dbuf.dsize = count * sizeof(*locks);
- status = dbwrap_record_store(locked, dbuf, TDB_REPLACE);
+ status = dbwrap_record_store(locked,
+ dbuf,
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
}
count--;
dbuf.dsize = count * sizeof(*locks);
- status = dbwrap_record_store(locked, dbuf,
- TDB_REPLACE);
+ status = dbwrap_record_store(locked,
+ dbuf,
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
dbuf.dsize = count * sizeof(*locks);
- status = dbwrap_record_store(locked, dbuf, TDB_REPLACE);
+ status = dbwrap_record_store(locked, dbuf, DBWRAP_REPLACE);
}
talloc_free(locked);
dbuf.dptr = blob.data;
dbuf.dsize = blob.length;
- status = dbwrap_record_store(lck->locked, dbuf, TDB_REPLACE);
+ status = dbwrap_record_store(lck->locked, dbuf, DBWRAP_REPLACE);
data_blob_free(&blob);
return status;
}