tdb: Avoid reallocs for lockrecs
commitf3556bd03bf9dfa16fb00d85da1a2c065cb0e522
authorVolker Lendecke <vl@samba.org>
Mon, 9 Dec 2013 09:56:33 +0000 (9 09:56 +0000)
committerStefan Metzmacher <metze@samba.org>
Sat, 14 Dec 2013 12:19:47 +0000 (14 13:19 +0100)
treeb764251c67b5b8e8149f498a469e27146dd52406
parent2a77e613cb0ca6402b5401ef9bde7a06a07ba91c
tdb: Avoid reallocs for lockrecs

In normal operations we have at most 3 entries in this array. Don't
bother with shrinking.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Dec 14 13:19:47 CET 2013 on sn-devel-104
lib/tdb/common/lock.c
lib/tdb/common/open.c
lib/tdb/common/tdb_private.h