s3:dbwrap_ctdb: exit early when nothing has been written in transaction_commit.
authorMichael Adam <obnox@samba.org>
Wed, 13 Jan 2010 22:53:54 +0000 (23:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 31 Mar 2010 15:54:30 +0000 (17:54 +0200)
commit6f325fb6b092da554180218d1cbb42181f90bbfa
tree202ef4e638adf45ecb0e6ea9a41c181d6d5c74e4
parent7fc2b612b8f77751effadcd53800c96e83e76418
s3:dbwrap_ctdb: exit early when nothing has been written in transaction_commit.

This skips update of the __db_sequence_number__ record when nothing else has
been written. There are transactions that are just openend and then nothing
is written until transaction_commit is called. This is for instance the case
with registry initialization routines: They start a transaction and only
write somthing when the registry has not been initialized yet.
So this change will skip many db_seqnum bumps and TRANS3_COMMIT roundtrips.

Michael
(cherry picked from commit c311697aded87ce624d40cbf14e05d6e6377c257)
source3/lib/dbwrap_ctdb.c