Commit Graph

78 Commits

Author SHA1 Message Date
12d7380391 Remove redundant code 2016-08-31 11:13:31 +02:00
a8652e0e67 #include cleanup in File.h (and resulting other cleanup) 2016-08-10 00:32:00 +02:00
e0fe8f6c73 Removed m_r (HttpRequest) from Process
I wonder what that has ever been used for...
+resulting #include cleanup
2016-08-10 00:10:11 +02:00
7df75be843 Removed the temporary setting of g_conf.m_testmeme to false while saving.
The parameter is marked with PF_NOSAVE anyway so it will never be saved to xml. My guess is that was very old code never cleaned up.
2016-08-08 16:17:07 +02:00
4f86e31625 removed unused config option. Added temporary (?) config option to enable no-merge changes - first change causes the full document to be indexed every time (no posdb delete keys used) 2016-08-03 16:21:33 +02:00
3c2773a928 Removed gbstrlen()
gbstrlen() just checked for NULL and called gbshutdownAbort(). Dereferncing NULL on mordern platforms cases a SIGSEGV which is cought by our signal handler and .... gbshutdownAbort() is called. So gbstrlen() was superfluous and complicated static analysis.
2016-07-28 17:04:35 +02:00
f3f5eefcb6 First batch of changes streamlining emergency shutdown code 2016-06-20 12:30:26 +02:00
023673fab0 Fix conversion from string literal to 'char *' for Conf, Msg12, Msg3, MsgC, Parms, PingServer, Rdb, RdbBase, RdbBuckets, TcpServer, XmlDoc 2016-05-31 11:26:02 +02:00
dd29c65ef9 constness 2016-05-22 21:38:00 +02:00
dd2fb62d6c Code style changes 2016-05-10 16:15:33 +02:00
0bbf3a4381 Code style changes 2016-05-10 16:15:33 +02:00
3b48e9b124 Remove unused variable from Conf 2016-03-10 20:44:36 +01:00
461cf8ad75 Remove unused g_indexdb 2016-03-03 21:57:28 +01:00
5a6bd0f85d Remove unused variable from Conf 2016-03-03 17:34:37 +01:00
7255c7aa23 Remove more unused variables/settings/functions 2016-03-02 20:09:25 +01:00
5c6de6588d Remove m_isMattWells 2016-02-28 11:35:41 +01:00
7b45665e17 Added const qualifier to some APIs
A few casts back to non-const were necessary in order to keep the patch size
manageble.
2016-02-26 10:29:13 +01:00
616e3f6da3 Remove double semicolon 2015-12-18 10:50:46 +01:00
404badc795 Remove hard-coded IP-addresses
Hardcoded public-IPs remove from source, including comments with the following
exceptions:
	Google public DNS (8.8.8.8 and 8.8.4.4) changed to #defines
	Private-IP addresses removed, or chantged to documentation IP addresses (rfc5737)
	A few odd cases left in XmlDoc.cpp
2015-12-15 16:58:53 +01:00
1540ce0754 Use #defines for DNS servers
Use #defines for DNS servers, defaulting to Google's 8.8.8.8 and 8.8.4.4 instead
of the having the literal peppered all over the code
2015-12-15 16:58:53 +01:00
04179efc10 Forgotten commit, and git doesn't like me 2015-12-15 14:07:44 +01:00
37b639f7f5 bugfix: use correct loop condition when initializing Conf::m_dns* 2015-12-15 14:07:44 +01:00
f8e9dac6de Removed AutoBan, dmoz & related code (Categories and related Msg/Db), scraping code. 2015-12-11 21:56:05 +01:00
cf218d02cf Removed logic and variables dealing with yippy 2015-12-11 11:45:16 +01:00
0b98f2c337 Remove some unused methods/class. Minor restructuring of test files. 2015-12-10 12:12:50 +01:00
a9410738ae fix permissions bug when creating directories,
need to put in user/group execute bit.
2015-10-07 08:26:27 -06:00
2fde3ac5bc call umask() to fix gb process umask so
files created are group writable
2015-09-22 12:23:33 -06:00
100888d691 fix file/dir creation permissions bugs 2015-09-21 12:44:41 -06:00
74cde33a3a just use the user's umask val for all file/dir creation 2015-09-21 11:33:38 -06:00
ce7b06fc4d all files made are now group writable.
if you don't like that then you can make
a special group and set the directory just
group writable for that group using chmod g+s <dir>.
2015-09-21 11:19:34 -06:00
a29cf8c787 fix resuming a killed merge 2015-09-12 08:01:40 -07:00
0f7910125b make it so we can still save coll.conf on
malloc/free cores. do not call RdbMap::reduceMemFootprint()
on maps that are from files being merged into and we're
resuming the killed merge at startup.
2015-08-21 18:07:07 -07:00
a1ed368d82 bring back max mem control into master controls.
it's useful to limit per process mem usage to prevent
oom killer because we can't save if we get killed.
overhaul diskpagecache to just use rdbcache. much simpler
and faster, but disabled for now until debugged more.
reduce min files to merge for crawlbot collections so
they stay more tightly merged to conserve fds and mem.
improved logDebugDisk msgs.
overhauled File.cpp fd pool. now it is way faster and
doesn't use any extra mem. much simpler too. although
could be sped up a little by using a linked list, but
probably is not significant enough to warrant doing right now.
increase mem ptr table from 3M to 8M slots. should really make
dynamic though. fix core from null msg20s[0]->m_r.
only call attemptMergeAll once every 60 seconds really.
do not attempt merge if already merging.
2015-08-14 12:58:54 -06:00
eccb969e5b put in some fixes to deal with doledb tree
that seems to have m_data[i] and m_data[j]
pointing to the same thing. wtf? anyway,
deal with that. it should fix the tree or
something automatically at startup?
2015-03-08 20:36:13 -07:00
93b505e7bb fix isCollAdmin() function to return false
if not using coll passwords. they'll have to
be master admin.
2015-03-02 07:47:05 -08:00
596a674c61 fixes for rebuilding the active list
in SpiderLoop class.
2015-02-12 17:00:38 -08:00
04cc8adbdd fix &admin=0 so it works again 2015-02-12 11:16:34 -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
69ef3c14ef fixes for repair/rebuild functionality.
more to come.
2014-11-13 13:04:28 -08:00
96b8197ad3 now it compiles with -m32 2014-11-10 14:45:11 -08:00
3bba6881fa fix gblocal.conf bug 2014-10-06 21:35:54 -07:00
ce56fb93ab fix qa test so we can roll out proxy code. 2014-09-30 15:40:02 -07:00
e3dbeafa5f more updates to cloud code 2014-09-29 18:28:36 -07:00
46290fa52f new password systems. individual collection passwords/accessIps. 2014-09-28 18:59:49 -07:00
58f5a2dd57 save conf files safely to disk so we don't
lose them because the disk is full.
2014-07-29 10:02:43 -07:00
2a094accff add qa page 2014-07-25 17:39:29 -07:00
2f8207ccf7 qa fixes 2014-07-11 19:07:49 -07:00
a154f679d1 some setup for qaspider() 2014-07-08 20:33:13 -07:00
aaec46f612 added gbdocspiderdate and gbdocindexdate terms
just for docs and not spider reply "documents".
do not index plain terms for CT_STATUS spider reply
docs. create gb.conf if does not exist, take out of
repo.
2014-06-19 15:27:46 -07:00