41 Commits

Author SHA1 Message Date
12fa7d8855 Use rwlock for RdbTree 2017-06-07 16:32:44 +02:00
72db061df4 added trace log to TopTree. Make sure TopTree does not exceed number of requested documents 2017-04-21 17:12:42 +02:00
1349b48c41 Add locks to RdbTree.
Some code style changes/comment removal.
Moved treetest which was in main.cpp to unittest
2017-03-31 12:59:40 +02:00
a46e553b33 Encapsulate topTree better 2017-03-27 16:31:17 +02:00
a67f572894 Sync changes in nomerge2 to master for TopTree (comment removal) 2017-03-24 14:05:44 +01:00
23df724e29 removed 'dataInPtrs' paramteer to RdbTree::set()
Only TopTree ever set it to true and it only has an effect on save/load which TopTree never does.
2017-03-24 13:10:33 +01:00
b4537e2794 Remove non const version of RdbTree::getKey 2017-03-22 12:10:13 +01:00
8e9c71b0fd Bugfix TopTree::getPrev() when there is no left children and no parent 2017-01-12 17:12:49 +01:00
613a54c4cc Don't take address of arrays 2017-01-10 01:01:52 +01:00
c742bac82c minor code flow simplification in TopTree 2016-10-23 09:54:24 +02:00
fd325a246f char -> bool in TopTree 2016-10-20 11:55:56 +02:00
240c8da792 Use proper English: alloced -> allocated 2016-10-17 11:59:43 +02:00
9a5b66c26b init class members in TopTree 2016-09-30 12:31:39 +02:00
5768b51b32 Remove key96_t version of RdbTree::addNode 2016-09-22 10:55:39 +02:00
6fa7affb43 Rename RdbTree::deleteNode3 to RdbTree::deleteNode 2016-09-21 15:16:08 +02:00
e5c2837ec5 Use Titledb:: instead of g_titledb for calling static functions. Minor consolidation of Titledb functions 2016-09-13 11:06:46 +02:00
a040a78c99 Use key96_t instead of key_t and redefining std lib key_t (which breaks std lib functionality that uses key_t) 2016-09-02 14:49:06 +02:00
659cb92531 Remove always true/false args from RdbTree::set and RdbBucket::set (ignoring the only difference that is in test code) 2016-08-31 11:13:31 +02:00
81f72b13e0 Encapsulate RdbTree 2016-08-31 11:13:31 +02:00
1e1a8069af Remove always false args from RdbTree::set 2016-08-31 11:13:31 +02:00
4e4e3371e6 Log function will now return void instead of a boolean 2016-08-01 18:12:10 +02:00
4dccc715bd #include cleanup 2016-07-11 13:53:44 +02:00
f3f5eefcb6 First batch of changes streamlining emergency shutdown code 2016-06-20 12:30:26 +02:00
d40ecb2f8e Replace INT32/INT64 and likes with PRId32 and likes. Add space before definition. 2016-05-20 09:18:32 +02:00
304e68f277 Removed unreachable code 2016-03-08 22:38:00 +01:00
8f83834af5 Initialize TopTree:m_pickRight 2015-11-18 12:24:28 +01:00
24eac820d5 fixed bad deletenode call causing dups in
winnertree.
2015-02-12 16:12:23 -08:00
87285ba3cd use gbmemcpy not memcpy so we can get profiler working again
since memcpy can't be interrupted and backtrace() called.
2015-01-13 12:25:42 -07:00
dfce03eca8 fix printing of "next 10" link 2014-12-08 09:55:16 -08:00
4fbb2443b5 Revert "Revert "emergency fix so ppl can download large # objects in json""
This reverts commit aaa5b34126.
2014-12-08 07:40:44 -08:00
aaa5b34126 Revert "emergency fix so ppl can download large # objects in json"
This reverts commit c692b54bfd.
2014-12-08 07:36:31 -08:00
c692b54bfd emergency fix so ppl can download large # objects in json 2014-12-08 07:13:00 -08:00
adcef39376 Merge branch 'diffbot-testing' into diffbot-matt
Conflicts:
	Collectiondb.cpp
	Collectiondb.h
	Conf.cpp
	Conf.h
	Msg39.cpp
	PageEvents.cpp
	PageResults.cpp
	PageTurk.cpp
	Pages.cpp
	Parms.cpp
	Posdb.cpp
	Proxy.cpp
	Query.cpp
	Query.h
	RdbBase.cpp
	RdbMap.cpp
	Repair.cpp
	Repair.h
	SafeBuf.cpp
	Spider.cpp
	Tagdb.cpp
	TopTree.cpp
	XmlDoc.cpp
	main.cpp
2014-11-20 16:53:07 -08:00
931a1c4bc6 good checkpoint. quite a few fixes. 2014-11-17 18:13:36 -08:00
4c19453ea9 working with -m32 for basic testing.
compiles for 64-bit.
2014-11-12 11:38:37 -08:00
96b8197ad3 now it compiles with -m32 2014-11-10 14:45:11 -08:00
ca77393372 fix core when top tree's setNumNodes
tried to allocate too many nodes.
2014-11-03 18:47:37 -07:00
e7dd8f7956 replace long long with int64_t 2014-10-30 13:36:39 -06:00
625c5e5790 fix squid proxy balancing code some more.
fix death queries when msg2 had docs wanted of 0
because all termlists were empty.
2014-10-14 08:04:23 -07:00
2d4af1aefe index numbers as integers too, not just floats
so we can sort by spider date without losing
128 seconds of resolution.
2014-02-06 20:57:54 -08:00
f6e560c1f4 Initial file population. 2013-08-02 13:12:24 -07:00