]> granicus.if.org Git - pdns/commitdiff
Add thread ID to snapshotCurrent()
authorNeil Cook <neil.cook@noware.co.uk>
Fri, 19 Oct 2018 11:25:37 +0000 (11:25 +0000)
committerNeil Cook <neil.cook@noware.co.uk>
Wed, 24 Oct 2018 12:43:25 +0000 (12:43 +0000)
pdns/recursordist/test-nod_cc.cc

index 6a07a46d768aa25c21b162546a7507d59810de10..ae1f61f19278d9a37dbecce929b9548017abba13 100644 (file)
@@ -48,7 +48,7 @@ BOOST_AUTO_TEST_CASE(test_basic) {
     BOOST_CHECK_EQUAL(newnod.isNewDomain(new_domain2), true);
     BOOST_CHECK_EQUAL(newnod.isNewDomain(new_domain1), false);
     BOOST_CHECK_EQUAL(newnod.isNewDomain(new_domain2), false);
-    BOOST_CHECK_EQUAL(newnod.snapshotCurrent(), true);
+    BOOST_CHECK_EQUAL(newnod.snapshotCurrent(std::this_thread::get_id()), true);
   }
   {
     NODDB newnod;