Make our atomic increment code actually do this during its first/second run.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 13 Apr 2002 03:23:08 +0000 (03:23 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 13 Apr 2002 03:23:08 +0000 (03:23 +0000)
commita4594d9efeca1f67dea57be8323fb4bd986318ce
tree24c5c3b5b3f392be6aa10dc9d69a23fd0ca15758
parenta9895fcb30cdcb572cd254b0d370d79f95c7214d
Make our atomic increment code actually do this during its first/second run.

The previous code would return the same value for both the initial and second
call, only incrementing on later calls.

Andrew Bartlett
source/tdb/tdbutil.c