diff options
author | jiangph <jiangph@cn.ibm.com> | 2018-10-25 17:28:32 +0800 |
---|---|---|
committer | jiangph <jiangph@cn.ibm.com> | 2018-10-25 21:18:53 +0800 |
commit | 10c10157934a0073e84c6aae8a61f687e01e144c (patch) | |
tree | 8da3d988ec8de314877ddb2f4adc1c507d59e964 | |
parent | 0f1be2ffef0cb3a1fca492babeb8ce95d829c07b (diff) | |
download | couchdb-10c10157934a0073e84c6aae8a61f687e01e144c.tar.gz |
use updated_on instead of timestamp_utc in local purge doc
COUCHDB-3326
-rw-r--r-- | src/dreyfus_util.erl | 2 | ||||
-rw-r--r-- | test/dreyfus_purge_test.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dreyfus_util.erl b/src/dreyfus_util.erl index e3c26999b..a06717ae4 100644 --- a/src/dreyfus_util.erl +++ b/src/dreyfus_util.erl @@ -288,7 +288,7 @@ get_local_purge_doc_body(Db, LocalDocId, PurgeSeq, Index) -> JsonList = {[ {<<"_id">>, LocalDocId}, {<<"purge_seq">>, PurgeSeq}, - {<<"timestamp_utc">>, NowSecs}, + {<<"updated_on">>, NowSecs}, {<<"indexname">>, IdxName}, {<<"ddoc_id">>, DDocId}, {<<"signature">>, Sig}, diff --git a/test/dreyfus_purge_test.erl b/test/dreyfus_purge_test.erl index a40e8b1ae..5fa4bc90f 100644 --- a/test/dreyfus_purge_test.erl +++ b/test/dreyfus_purge_test.erl @@ -544,7 +544,7 @@ test_local_doc() -> {ok, Db} = couch_db:open_int(Shard#shard.name, [?ADMIN_CTX]), {ok, LDoc} = couch_db:open_doc(Db, LocalId, []), {Props} = couch_doc:to_json_obj(LDoc, []), - dreyfus_util:get_value_from_options(<<"timestamp_utc">>, Props), + dreyfus_util:get_value_from_options(<<"updated_on">>, Props), PurgeSeq = dreyfus_util:get_value_from_options(<<"purge_seq">>, Props), Type = dreyfus_util:get_value_from_options(<<"type">>, Props), ?assertEqual(<<"dreyfus">>, Type), |