Files
mongo/client/constants.h

27 lines
824 B
C
Raw Normal View History

2010-07-19 10:56:58 -04:00
// constants.h
#pragma once
namespace mongo {
/* query results include a 32 result flag word consisting of these bits */
2010-07-18 13:34:16 -04:00
enum ResultFlagType {
/* returned, with zero results, when getMore is called but the cursor id
2010-07-19 10:56:58 -04:00
is not valid at the server. */
2010-07-18 13:34:16 -04:00
ResultFlag_CursorNotFound = 1,
2010-07-19 10:56:58 -04:00
2010-07-18 13:34:16 -04:00
/* { $err : ... } is being returned */
ResultFlag_ErrSet = 2,
2010-07-19 10:56:58 -04:00
2010-07-18 13:34:16 -04:00
/* Have to update config from the server, usually $err is also set */
ResultFlag_ShardConfigStale = 4,
2010-07-19 10:56:58 -04:00
2010-07-18 13:34:16 -04:00
/* for backward compatability: this let's us know the server supports
2010-07-19 10:56:58 -04:00
the QueryOption_AwaitData option. if it doesn't, a repl slave client should sleep
2010-07-18 13:34:16 -04:00
a little between getMore's.
*/
ResultFlag_AwaitCapable = 8
};
2010-07-19 10:56:58 -04:00
}