Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Unified Diff: src/MasterServiceTest.cc

Issue 861001: Create tables for mapping index objects
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/MasterService.cc ('k') | src/TableManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/MasterServiceTest.cc
diff --git a/src/MasterServiceTest.cc b/src/MasterServiceTest.cc
index 7682346984a126a23354040285683d171c26ce11..d5aa294e7027ab7654ed1c96af33c55d94a2b1d0 100644
--- a/src/MasterServiceTest.cc
+++ b/src/MasterServiceTest.cc
@@ -409,10 +409,10 @@ TEST_F(MasterServiceTest, dropIndexletOwnership) {
TestLog::reset();
MasterClient::takeIndexletOwnership(&context, masterServer->serverId,
- 2, 1, reinterpret_cast<const void*>(key1.c_str()),
- (uint16_t)key1.length(),
- reinterpret_cast<const void*>(key2.c_str()),
- (uint16_t)key2.length());
+ 2, 1, 0, reinterpret_cast<const void*>(key1.c_str()),
+ (uint16_t)key1.length(),
+ reinterpret_cast<const void*>(key2.c_str()),
+ (uint16_t)key2.length());
MasterClient::dropIndexletOwnership(&context, masterServer->serverId,
2, 1, reinterpret_cast<const void*>(key1.c_str()),
(uint16_t)key1.length(),
@@ -431,7 +431,7 @@ TEST_F(MasterServiceTest, takeIndexletOwnership) {
string key2 = "c";
string key3 = "b";
MasterClient::takeIndexletOwnership(&context, masterServer->serverId, 2,
- 1, reinterpret_cast<const void *>(key1.c_str()),
+ 1, 0, reinterpret_cast<const void *>(key1.c_str()),
(uint16_t)key1.length(),
reinterpret_cast<const void *>(key2.c_str()),
(uint16_t)key2.length());
@@ -440,7 +440,7 @@ TEST_F(MasterServiceTest, takeIndexletOwnership) {
TestLog::reset();
MasterClient::takeIndexletOwnership(&context, masterServer->serverId, 2,
- 1, reinterpret_cast<const void *>(key1.c_str()),
+ 1, 0, reinterpret_cast<const void *>(key1.c_str()),
(uint16_t)key1.length(),
reinterpret_cast<const void *>(key2.c_str()),
(uint16_t)key2.length());
@@ -452,7 +452,7 @@ TEST_F(MasterServiceTest, takeIndexletOwnership) {
// Test partially overlapping sanity check.
EXPECT_THROW(
MasterClient::takeIndexletOwnership(&context, masterServer->serverId, 2,
- 1, reinterpret_cast<const void *>(key1.c_str()),
+ 1, 0, reinterpret_cast<const void *>(key1.c_str()),
(uint16_t)key1.length(),
reinterpret_cast<const void *>(key3.c_str()),
(uint16_t)key3.length()), ClientException);
« no previous file with comments | « src/MasterService.cc ('k') | src/TableManager.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld aab5469