mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ldb_tdb: ltdb_tdb_parse_record map tdb error codes
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d206fcf5c7
commit
8d1b11aac9
@ -1882,9 +1882,14 @@ static int ltdb_tdb_parse_record(struct ltdb_private *ltdb,
|
||||
.dptr = ldb_key.data,
|
||||
.dsize = ldb_key.length
|
||||
};
|
||||
int ret;
|
||||
|
||||
return tdb_parse_record(ltdb->tdb, key, ltdb_tdb_parse_record_wrapper,
|
||||
&kv_ctx);
|
||||
ret = tdb_parse_record(ltdb->tdb, key, ltdb_tdb_parse_record_wrapper,
|
||||
&kv_ctx);
|
||||
if (ret == 0) {
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
return ltdb_err_map(tdb_error(ltdb->tdb));
|
||||
}
|
||||
|
||||
static const char * ltdb_tdb_name(struct ltdb_private *ltdb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user