tdb: Fix a missing CONVERT
commit2c3fd8a13e7dde23a23404cd88078a04c8b338ea
authorVolker Lendecke <vl@samba.org>
Tue, 11 Dec 2012 20:04:58 +0000 (11 21:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2012 10:54:33 +0000 (21 11:54 +0100)
tree3e1b56268cb8f67306b367efc6a07351f6e01b31
parent2148d86c7a2facd6e128b753aef98722843af3e1
tdb: Fix a missing CONVERT

methods->tdb_write expects data in on-disk format. For reading that
record, methods->tdb_read() has taken care of the on-disk to in-memory
representation according to the DOCONV() flag passed down. tdb_rec_write()
is a wrapper around methods->tdb_write just doing the CONVERT() on the
way to disk.

Reviewed-by: Rusty Russell <rusty@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/freelist.c