00001 // constants.h 00002 00003 #pragma once 00004 00005 namespace mongo { 00006 00007 /* query results include a 32 result flag word consisting of these bits */ 00008 enum ResultFlagType { 00009 /* returned, with zero results, when getMore is called but the cursor id 00010 is not valid at the server. */ 00011 ResultFlag_CursorNotFound = 1, 00012 00013 /* { $err : ... } is being returned */ 00014 ResultFlag_ErrSet = 2, 00015 00016 /* Have to update config from the server, usually $err is also set */ 00017 ResultFlag_ShardConfigStale = 4, 00018 00019 /* for backward compatability: this let's us know the server supports 00020 the QueryOption_AwaitData option. if it doesn't, a repl slave client should sleep 00021 a little between getMore's. 00022 */ 00023 ResultFlag_AwaitCapable = 8 00024 }; 00025 00026 }