Commit Graph
41 Commits
Author SHA1 Message Date
Jan-Piet Mens 5c319d16c9 ocat --dump will not dump internal db names
a previous commit erroneously avoided dumping content if it
	didn't contain JSON (i.e. a '{') which broke dumping of
	friends.

	The reason I did that at the time is to avoid gcache_dump()
	outputs the db names, as in:

	$ ./ocat --dump | grep -E '^[a-z0-9]+   *$'
	friends
	luadb
	topic2tid
	wp

	This fixes that. (includes 'keys' db which exists with ENCRYPT)

	fixes #572
2026-07-16 20:20:39 +02:00
Jan-Piet Mens de456c5f35 remove superflous setting 2025-05-26 20:07:20 +02:00
Jan-Piet Mens c97bfab159 bump copyright dates 2025-01-02 12:13:04 +01:00
Jan-Piet Mens a90e2fee7b ocat --dump will not output keys which don't have JSON data in them
avoids dump's output containing lines with
		friends
		luadb
		topic2tid
		wp
2024-10-07 10:20:23 +02:00
Jan-Piet Mens 3634f46496 print currently desired lmdb size in error that cache cannot be opened
addresses #480
2024-07-26 15:49:02 +02:00
Jan-Piet Mens 64c161d942 clarify comment 2024-02-03 10:19:37 +01:00
Jan-Piet Mens 1f7b30fb90 missing variable 2024-02-02 20:36:52 +01:00
Jan-Piet Mens 1993f6f451 improve error handling in gcache 2024-02-02 20:22:36 +01:00
Jan-Piet Mens e213a0b8b1 bump (C) 2024-02-01 18:04:02 +01:00
Jan-Piet Mens 37cae69f5f update copyright year 2023-01-02 14:05:26 +01:00
Jan-Piet Mens 1f10adfa64 LMDB_DB_SIZE can be overriden by $OTR_LMDBSIZE
closes #348
2022-05-23 18:26:03 +02:00
Jan-Piet Mens 7864b6e042 bump copyright date 2019-12-31 11:51:59 +01:00
Jan-Piet Mens 4b212126fe typo in error message 2018-12-14 11:33:38 +01:00
Jan-Piet Mens e1f7a1367d consistently use json_delete 2017-08-16 13:49:51 +02:00
Jan-Piet Mens 408c7cb6df spurious comment 2016-12-08 20:02:18 +01:00
Jan-Piet Mens e1cd5c39e7 geofences now use correct topic and enhanced payload as per Booklet for transition events 2016-12-08 18:07:15 +01:00
Jan-Piet Mens 491a8f6f20 NEW: support for geo fences (waypoints)
WARNING: you must run --initialize to create the new sub db
  see documentation in doc/FENCES.md
2016-12-07 19:40:59 +01:00
Jan-Piet Mens adea7e7f55 print dbname which fails to open 2016-03-04 15:43:20 +01:00
Jan-Piet Mens e2b9166597 GPL-2 license 2016-02-16 14:09:30 +01:00
Jan-Piet Mens 865e986d3d update (C) date 2016-01-01 15:57:34 +01:00
Jan-Piet Mens 8bd8263b52 surface gcache_del() 2015-10-22 10:47:26 +02:00
Jan-Piet Mens a4c63a85cd solidify error-handling 2015-09-28 12:14:05 +02:00
Jan-Piet Mens 479d9325ef fix printing on dump 2015-09-25 18:44:51 +02:00
Jan-Piet Mens ed9630c4f8 remove debug 2015-09-25 13:20:28 +02:00
Jan-Piet Mens 66f31247fa Support key deletion on --load 2015-09-25 09:47:44 +02:00
Jan-Piet Mens 3edd9c2923 Prepare support for named databases in gcache 2015-09-24 12:49:14 +02:00
Jan-Piet Mens 2c853367b4 rename variable to make sense 2015-09-17 13:40:44 +02:00
Jan-Piet Mens f4d803a2c1 NEW: ocat --load-ghash can load revgeo db
closes #21
2015-09-14 22:07:56 +02:00
Jan-Piet Mens cb454f26d6 NEW: ocat --dump-ghash dumps content of revgeo db 2015-09-14 20:54:05 +02:00
Jan-Piet Mens d4ffb3e16a fix: log gcache errors to syslog 2015-09-10 15:30:42 +02:00
Jan-Piet Mens 5188c817b1 permissions for LMDB 2015-09-10 15:10:29 +02:00
Jan-Piet Mens fc5179027b lower perms on env_open 2015-09-10 14:10:00 +02:00
Jan-Piet Mens 43ba4ab3ad error-messages for LMDB 2015-09-10 14:07:37 +02:00
Jan-Piet Mens 1788cb58d7 support named databases 2015-09-07 14:08:09 +02:00
Jan-Piet Mens 03c119b43b storage: add support for LMDB "named" databases 2015-09-07 13:48:47 +02:00
Jan-Piet Mens dd0f1f4cad simplify gcache put functions 2015-09-03 19:57:32 +02:00
Jan-Piet Mens 17aada0b3e config.h: make JSON output indentable (or not) 2015-09-02 20:03:41 +02:00
Jan-Piet Mens 8431870ee8 add license 2015-09-01 17:19:52 +02:00
Jan-Piet Mens 7e17535314 move is_directory() to utils 2015-09-01 14:05:02 +02:00
Jan-Piet Mens 4cb5d2f17f errors to stderr 2015-09-01 13:58:36 +02:00
Jan-Piet Mens 7420dcd0ec Rip out Redis & replace with LMDB. 2015-09-01 13:31:49 +02:00