diff options
author | Dan Pasette <dan@10gen.com> | 2014-11-25 17:14:23 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-11-25 17:38:26 -0500 |
commit | 68f1a779e1a3063ef04f07be460d370e7fd82a93 (patch) | |
tree | f8fb16362891634d275ef16f26b5952b22d91750 /src/mongo/db/storage/sorted_data_interface_test_touch.cpp | |
parent | a4d077c775d8322c9e59313c3618fe73ac85e925 (diff) | |
download | mongo-68f1a779e1a3063ef04f07be460d370e7fd82a93.tar.gz |
SERVER-16114 touch cmd returns an error when storage engine does not support it
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface_test_touch.cpp')
-rw-r--r-- | src/mongo/db/storage/sorted_data_interface_test_touch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface_test_touch.cpp b/src/mongo/db/storage/sorted_data_interface_test_touch.cpp index 94d7c150da7..0719dd0209f 100644 --- a/src/mongo/db/storage/sorted_data_interface_test_touch.cpp +++ b/src/mongo/db/storage/sorted_data_interface_test_touch.cpp @@ -42,7 +42,8 @@ namespace mongo { { scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() ); - ASSERT_OK( sorted->touch( opCtx.get() ) ); + Status status = sorted->touch( opCtx.get() ); + ASSERT( status.isOK() || status.code() == ErrorCodes::CommandNotSupported ); } } @@ -76,7 +77,8 @@ namespace mongo { scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() ); // XXX does not verify the index was brought into memory // (even if supported by storage engine) - ASSERT_OK( sorted->touch( opCtx.get() ) ); + Status status = sorted->touch( opCtx.get() ); + ASSERT( status.isOK() || status.code() == ErrorCodes::CommandNotSupported ); } } |