diff options
author | Randolph Tan <randolph@10gen.com> | 2017-02-13 11:22:40 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-02-27 13:15:43 -0500 |
commit | 2e68e8bf05fd7c6cb94b82fcfd0fe237c9f7ccb8 (patch) | |
tree | 2374dc732dbe4f1f59b63e2680e205533fecf976 /src/mongo/db/time_proof_service.h | |
parent | a4e1443629b733c7c0fd44dddcd78e884da848bd (diff) | |
download | mongo-2e68e8bf05fd7c6cb94b82fcfd0fe237c9f7ccb8.tar.gz |
SERVER-27748 Implement LogicalTimeMetadata
Diffstat (limited to 'src/mongo/db/time_proof_service.h')
-rw-r--r-- | src/mongo/db/time_proof_service.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/time_proof_service.h b/src/mongo/db/time_proof_service.h index bc43e1ceee3..5be6bf46e38 100644 --- a/src/mongo/db/time_proof_service.h +++ b/src/mongo/db/time_proof_service.h @@ -29,6 +29,7 @@ #pragma once #include "mongo/base/status.h" +#include "mongo/crypto/sha1_block.h" #include "mongo/db/logical_time.h" namespace mongo { @@ -40,14 +41,13 @@ namespace mongo { class TimeProofService { public: // This type must be synchronized with the library that generates SHA1 or other proof. - using TimeProof = std::string; + using TimeProof = SHA1Block; /** * Returns the proof matching the time argument. */ TimeProof getProof(LogicalTime time) { - TimeProof proof = "12345678901234567890"; - return proof; + return SHA1Block(); } /** |