memgraph/src/utils
Matej Ferencevic f48ad62647 Implement storage lock
Summary:
The storage now uses a file in the data directory (`.lock`) to determine
whether there is another instance of the storage running with the same data
directory. That helps notify the user/administrator that the system is running
in an unsupported configuration.

Reviewers: teon.banek, ipaljak

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2719
2020-03-13 19:27:01 +01:00
..
pmr Implement wrappers for STL containers with our allocator 2019-09-02 17:04:15 +02:00
sysinfo Migrate to C++17 2019-04-23 14:46:44 +02:00
algorithm.hpp utils: Support std::basic_string with allocators 2019-06-03 17:07:49 +02:00
bound.hpp GraphDbAccessor - label+property index cardinalities for exact value and value ranges 2017-07-06 10:22:19 +02:00
cache.hpp Add nullptr check in LruList 2019-05-08 08:52:17 +02:00
cast.hpp Add support for the id function 2018-07-04 22:14:13 +02:00
CMakeLists.txt Remove unused utils 2020-01-23 17:22:51 +01:00
endian.hpp Replace bswap with proper endian functions 2019-08-07 15:45:03 +02:00
exceptions.hpp Take care of warnings/errors created by cppcheck. 2017-11-10 10:28:02 +01:00
file.cpp Implement storage lock 2020-03-13 19:27:01 +01:00
file.hpp Implement storage lock 2020-03-13 19:27:01 +01:00
flag_validation.hpp Refactor GraphDb 2018-01-12 16:47:24 +01:00
fnv.hpp Clean-up utils/hashing 2020-01-28 10:40:43 +01:00
likely.hpp antlr integration, *.hpp and *.cpp inside src dir, cleanup 2017-02-17 16:20:31 +01:00
linux.hpp Implement new SkipList 2019-01-14 13:01:15 +01:00
math.hpp query/procedure: Implement memory management C API 2019-10-18 14:35:04 +02:00
memory.cpp query/procedure: Implement memory management C API 2019-10-18 14:35:04 +02:00
memory.hpp Add utils::LimitedMemoryResource 2019-11-06 15:45:56 +01:00
on_scope_exit.hpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00
result.hpp Add utils::BasicResult specialization for void 2019-09-10 13:32:54 +02:00
rw_lock.hpp Cleanup locks 2019-07-17 10:33:44 +02:00
scheduler.hpp Document exceptions and other details in storage v2 API 2019-09-05 10:04:40 +02:00
signals.cpp Split signals utils into cpp and hpp 2018-04-03 11:17:11 +02:00
signals.hpp Implement audit logging 2019-02-19 15:11:30 +01:00
skip_list.hpp Fix utils::SkipList const iterator bug 2020-03-05 11:17:26 +01:00
small_vector.hpp Add SmallVector and tests 2018-11-14 15:04:12 +01:00
spin_lock.hpp Remove copy constructor/assignment from utils::SpinLock 2019-12-04 14:08:58 +01:00
stack.hpp Make move operations noexcept 2019-05-21 10:46:25 +02:00
stacktrace.hpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00
stat.hpp Migrate to C++17 2019-04-23 14:46:44 +02:00
string.hpp Improve CSV importer 2020-03-10 15:51:29 +01:00
synchronized.hpp Implement Synchronized<T> utility 2019-07-22 14:55:21 +02:00
terminate_handler.hpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00
thread.cpp Remove unused utils 2020-01-23 17:22:51 +01:00
thread.hpp Remove unused utils 2020-01-23 17:22:51 +01:00
timer.hpp Add query profiling: Tree 2019-01-15 12:13:40 +01:00
timestamp.hpp Remove TotalOrdering from utils::Timestamp 2020-01-28 10:40:55 +01:00
tsc.hpp Implement query execution timeout 2019-11-25 17:45:40 +01:00
typeinfo.hpp Generate virtual GetTypeInfo with LCP 2019-01-25 14:12:50 +01:00
uuid.cpp Initial implementation of telemetry 2018-06-20 14:49:07 +02:00
uuid.hpp Initial implementation of telemetry 2018-06-20 14:49:07 +02:00
visitor.hpp Fix total_weight not being returned with RETURN * 2018-10-18 15:03:46 +02:00