aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia.hrl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-30 15:12:07 +0100
committerRickard Green <[email protected]>2015-03-20 15:28:53 +0100
commit4deb4dbc453318bcdf2f6f160cdb219fb31f7926 (patch)
tree1ad63eb2857f6d4cee5b4aaa63cb6ce5f2bb9706 /lib/mnesia/src/mnesia.hrl
parentd33ac120455f520a74b3c5cdfc32136d25b3e771 (diff)
downloadotp-4deb4dbc453318bcdf2f6f160cdb219fb31f7926.tar.gz
otp-4deb4dbc453318bcdf2f6f160cdb219fb31f7926.tar.bz2
otp-4deb4dbc453318bcdf2f6f160cdb219fb31f7926.zip
Replace usage of erlang:now() with usage of new API
Diffstat (limited to 'lib/mnesia/src/mnesia.hrl')
-rw-r--r--lib/mnesia/src/mnesia.hrl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia.hrl b/lib/mnesia/src/mnesia.hrl
index c8010d5466..9a58ea581a 100644
--- a/lib/mnesia/src/mnesia.hrl
+++ b/lib/mnesia/src/mnesia.hrl
@@ -53,7 +53,9 @@
up_stores = [], %% list of upper layer stores for nested trans
level = 1}). %% transaction level
--define(unique_cookie, {erlang:now(), node()}).
+-define(unique_cookie, {{erlang:monotonic_time() + erlang:time_offset(),
+ erlang:unique_integer(),1},
+ node()}).
-record(cstruct, {name, % Atom
type = set, % set | bag