6df2a4db43
Workaround for a bug in gcc. It's fixed in gcc 7.
2017-08-20 04:45:04 +01:00
0770ca704b
Show which files were matched on the index when locating by hash.
...
Not sure why those changes were in my stash, I thought I had
committed all this already.
2017-08-19 15:32:07 +01:00
42d6ad0eac
Accept c-string queries.
2017-08-19 15:15:43 +01:00
e85a900974
Fix build error in release.
2017-08-18 00:38:49 +01:00
12147df2b4
Fix warning in release.
2017-08-18 00:32:58 +01:00
7e6d13b496
Print matched items by hash. Only print as deep as needed.
2017-08-18 00:24:54 +01:00
7f50f264e5
Implement make_filerecord_tree()
2017-08-18 00:24:54 +01:00
929c5b8adf
Add a unit test for PathName and fix the errors I found.
...
The pool was storing strings and references to it. References
became invalid as strings got moved around, as a consequence of
push_back() in the owner container. I'm storing references in
a custom StrRange struct now, and string refs are built on the
fly when one is needed.
2017-08-18 00:24:54 +01:00
93fe091303
Put the generic split() in its own file.
2017-08-18 00:24:54 +01:00
527f8cedea
Add a generic split() function.
2017-08-18 00:24:54 +01:00
9987d2b97e
Remove unused variables
2017-08-18 00:24:54 +01:00
6c2431a3d0
Add swap() method.
2017-08-18 00:24:54 +01:00
59eff8ff56
Allow sock connections to redis.
2017-08-18 00:24:54 +01:00
106b72bf0e
Skip mime errors if user passed --ignore-errors.
2017-08-12 21:33:57 +01:00
2318bc01ee
Fix assert due to necrophily.
2017-08-12 21:25:27 +01:00
23098c9fe0
Use a compiler-independent way to say -fPIC
2017-03-19 21:45:13 +00:00
b520b2f3d4
Try to fix error during make install.
2016-07-15 20:14:40 +01:00
f28ff13492
travis is not getting the -fPIC right for pq it seems.
...
Also make top-level cmake file default to Release if
no build type is given.
2016-07-15 20:02:42 +01:00
53540e40d8
Fix incredis.hpp not found error.
2016-07-15 18:47:57 +01:00
ccf13d7dfe
Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off
2016-07-15 17:45:48 +01:00
29c71c9222
Merge
2016-07-15 15:51:42 +01:00
e5814a5575
Buildfix in redis backend
2016-07-14 18:13:30 +01:00
2f6c4f3dab
Remove incredis and import it as a submodule.
2016-07-14 17:30:45 +01:00
7a3438def6
Fix namespaces.
...
Build works, except for incredis which I'm going to move out anyways.
2016-07-14 16:02:15 +01:00
a5477c99cf
Import duckhandy as a submodule and fix includes.
2016-07-14 15:52:03 +01:00
dc814b4d09
Move flatinsertin2dlist to postgresql backend.
...
It's the only place using that header and its use is so
specialized I struggle to even remember what it does.
2016-07-14 11:24:41 +01:00
0b10316d9e
Use lexical_cast from dinhelp, not boost.
2016-07-14 11:02:06 +01:00
4e41ea1864
Move hiredis wrapper into a separate .so
...
...but the new cmake file has some ugly hacks. Trying to work on
the problems...
2016-07-13 15:13:59 +01:00
43e53c3740
Move pending futures count's ownership to Command.
...
This is to make the count global across batches created from
the same Command.
2016-07-13 14:28:32 +01:00
960f10c370
Silence verbose feedback from commands sent to Redis.
2016-07-13 12:19:52 +01:00
853fb13495
Implement find_paths_starting_by().
2016-07-13 12:19:27 +01:00
f58d7d84eb
Implement find_file_details().
2016-07-13 01:49:29 +01:00
9a84f63e54
Implement zrangebyscore().
2016-07-13 01:49:29 +01:00
a9b979dd03
Implement zadd().
2016-07-13 01:49:29 +01:00
d7c254e1a0
Implement find_set_details().
2016-07-12 20:31:57 +01:00
d10ae6846d
Bugfix - cope with empty scan replies.
...
And, don't assert if anybody tries to disconnect twice. Just do nothing.
2016-07-12 20:31:31 +01:00
4b0aa85ac2
Fix typo in enum name.
2016-07-12 19:31:52 +01:00
5e69367c2c
Implement locate_sets_in_db().
...
It's finally got fast & easy to write! Too bad it was the last one...
2016-07-12 19:01:31 +01:00
346f7ce971
Refactor code so there is less copy paste.
2016-07-12 18:50:51 +01:00
e0eaad2587
Implement locate_sets_in_db().
2016-07-12 18:08:10 +01:00
bcfd1287c9
Extract the boost::copy_range part into a new function.
...
By making a more generic function, both locate functions can
use the same code now.
2016-07-12 17:20:56 +01:00
afb2e68849
Implement locate_in_db() by hash.
2016-07-12 16:42:27 +01:00
01be1a94e5
Bugfix - files where not being stored reliably.
...
Some crashes were also happening.
2016-07-12 13:40:12 +01:00
e2122277ee
Crash fix.
2016-07-12 12:37:39 +01:00
d6682eb130
Call wrapper methods instead of plain run().
2016-07-12 12:30:53 +01:00
f4c495c5ea
New wrapper methods.
2016-07-12 12:30:17 +01:00
e0670ff433
New IncRedisBatch class.
...
Wraps Batch similarly to how IncRedis wraps Command.
2016-07-12 12:07:36 +01:00
e02b0a16f5
Implement hmget() method and use it.
2016-07-12 11:40:44 +01:00
64b87c52bb
Move *scan function from Command to IncRedis.
...
Pass down IncRedis as required to fix the build.
2016-07-12 10:55:45 +01:00
d0242e2721
New IncRedis class. Makes high-level access to Redis easier.
2016-07-12 10:43:32 +01:00