<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/ntdb/test, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/'/>
<entry>
<title>ntdb: Fix control reaches end of non-void function.</title>
<updated>2014-11-28T13:24:07+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2014-11-18T13:16:58+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=8ce7904abd29b1bf01a7a040871bb31b844089d8'/>
<id>8ce7904abd29b1bf01a7a040871bb31b844089d8</id>
<content type='text'>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/ntdb optimize includes in ntdb tests</title>
<updated>2013-12-07T15:45:15+00:00</updated>
<author>
<name>Christian Ambach</name>
<email>ambi@samba.org</email>
</author>
<published>2013-11-22T04:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=0f41792dc597854f0d53c25c2975f542dd812711'/>
<id>0f41792dc597854f0d53c25c2975f542dd812711</id>
<content type='text'>
use the private header (which will use libreplace or system headers)
instead of direct includes of system includes

Signed-off-by: Christian Ambach &lt;ambi@samba.org&gt;
Reviewed-by: Rusty Russell &lt;rusty@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
use the private header (which will use libreplace or system headers)
instead of direct includes of system includes

Signed-off-by: Christian Ambach &lt;ambi@samba.org&gt;
Reviewed-by: Rusty Russell &lt;rusty@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyntdb: Add tests for Python API.</title>
<updated>2013-12-06T04:21:03+00:00</updated>
<author>
<name>Jelmer Vernooij</name>
<email>jelmer@samba.org</email>
</author>
<published>2013-12-01T23:20:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=43c021512cab2469b5ef6bb5074ee3f3b9da42a0'/>
<id>43c021512cab2469b5ef6bb5074ee3f3b9da42a0</id>
<content type='text'>
Signed-off-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;

Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;

Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: don't call open hook when re-opening an existing database.</title>
<updated>2013-03-23T08:39:50+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2013-03-23T06:57:57+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=068e0e2b38fb109eb1d1306c6d74bfa86ec0c4b8'/>
<id>068e0e2b38fb109eb1d1306c6d74bfa86ec0c4b8</id>
<content type='text'>
In particular, the Samba dbwrap wrapper can do this for schannel_store,
with the openhook set to clear the database if it can get the lock
(which, being in the same process, it can).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

Autobuild-User(master): Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Autobuild-Date(master): Sat Mar 23 09:39:50 CET 2013 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In particular, the Samba dbwrap wrapper can do this for schannel_store,
with the openhook set to clear the database if it can get the lock
(which, being in the same process, it can).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

Autobuild-User(master): Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Autobuild-Date(master): Sat Mar 23 09:39:50 CET 2013 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: fix database corruption when transaction doesn't change anything.</title>
<updated>2013-02-20T04:31:19+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2013-02-17T10:26:34+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=3d82f786ecdd6747e90fe480a15de8c3fcea5f7b'/>
<id>3d82f786ecdd6747e90fe480a15de8c3fcea5f7b</id>
<content type='text'>
ntdb's transaction code has an optimization which tdb's doesnt: it
only writes the parts of blocks whose contents have changed.  This
means we can actually have a transaction which turns out to need no
recovery region.

This breaks the recovery setup logic, which sets the current recovery
size to 0 if there's no recovery area, and assumes that we'll always
create a new recovery area since the recovery will always need &gt; 0
bytes.

In fact, if we really haven't changed anything, we can skip the
transaction commit altogether: since this happens at least once with
Samba, it's worth doing.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ntdb's transaction code has an optimization which tdb's doesnt: it
only writes the parts of blocks whose contents have changed.  This
means we can actually have a transaction which turns out to need no
recovery region.

This breaks the recovery setup logic, which sets the current recovery
size to 0 if there's no recovery area, and assumes that we'll always
create a new recovery area since the recovery will always need &gt; 0
bytes.

In fact, if we really haven't changed anything, we can skip the
transaction commit altogether: since this happens at least once with
Samba, it's worth doing.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>lib/ntdb: Fix format string errors found by -Werror=format in ntdb tests</title>
<updated>2012-07-30T04:25:10+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2012-07-30T03:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=17bddd15de8420629b91f02869fa99880cd80bca'/>
<id>17bddd15de8420629b91f02869fa99880cd80bca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: test arbitrary operations during ntdb_parse_record().</title>
<updated>2012-06-22T05:35:17+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-06-22T00:14:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=4c51ee1116c983ceef3804d79954aafad1b935ad'/>
<id>4c51ee1116c983ceef3804d79954aafad1b935ad</id>
<content type='text'>
In particular, this tests that we can store enough records to make the
database expand while we map the given record.  We use a global lock for
this, but it could happen in theory with another process.

It also tests the that we can recurse inside ntdb_parse_record().

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In particular, this tests that we can store enough records to make the
database expand while we map the given record.  We use a global lock for
this, but it could happen in theory with another process.

It also tests the that we can recurse inside ntdb_parse_record().

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: make database read-only during ntdb_parse() callback.</title>
<updated>2012-06-22T05:35:17+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-06-22T00:14:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=01ec4a72de56ade54bbbc92e0a408771390c5c12'/>
<id>01ec4a72de56ade54bbbc92e0a408771390c5c12</id>
<content type='text'>
Since we have a readlock, any write will grab a write lock: if it happens
to be on the same bucket, we'll fail.

For that reason, enforce read-only so every write operation fails
(even for NTDB_NOLOCK or NTDB_INTERNAL dbs), and document it!

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we have a readlock, any write will grab a write lock: if it happens
to be on the same bucket, we'll fail.

For that reason, enforce read-only so every write operation fails
(even for NTDB_NOLOCK or NTDB_INTERNAL dbs), and document it!

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: don't munmap the database on every close.</title>
<updated>2012-06-22T05:35:17+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-06-22T00:14:40+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=66d151d6893657b31c419d422bffeefc506e2319'/>
<id>66d151d6893657b31c419d422bffeefc506e2319</id>
<content type='text'>
Since we can have multiple openers, we should leave the mmap in place
for the other openers to use.  Enhance the test to check the bug (it
still works, because without mmap we fall back to read/write, but
performance would be terrible!).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we can have multiple openers, we should leave the mmap in place
for the other openers to use.  Enhance the test to check the bug (it
still works, because without mmap we fall back to read/write, but
performance would be terrible!).

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>ntdb: respect TDB_NO_FSYNC flag for 'make test'</title>
<updated>2012-06-22T05:35:16+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-06-21T23:47:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=0265837ee8ab98b00c18411bee3770075e27f900'/>
<id>0265837ee8ab98b00c18411bee3770075e27f900</id>
<content type='text'>
This reduces test time from 31 seconds to 6, on my laptop.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reduces test time from 31 seconds to 6, on my laptop.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
</feed>
