@@ -83,13 +83,19 @@ error_code("RoleDataInconsistent", 80)
83
83
error_code ("NoClientContext" , 81 )
84
84
error_code ("NoProgressMade" , 82 )
85
85
error_code ("RemoteResultsUnavailable" , 83 )
86
+ error_code ("IndexOptionsConflict" , 85 )
87
+ error_code ("IndexKeySpecsConflict" , 86 )
86
88
87
89
# Non-sequential error codes (for compatibility only)
88
90
error_code ("NotMaster" , 10107 ) #this comes from assert_util.h
89
91
error_code ("DuplicateKey" , 11000 )
90
92
error_code ("InterruptedAtShutdown" , 11600 )
91
93
error_code ("Interrupted" , 11601 )
92
94
error_code ("OutOfDiskSpace" , 14031 )
95
+ error_code ("BackgroundOperationInProgressForDatabase" , 12586 );
96
+ error_code ("BackgroundOperationInProgressForNamespace" , 12587 );
93
97
94
98
error_class ("NetworkError" , ["HostUnreachable" , "HostNotFound" ])
95
99
error_class ("Interruption" , ["Interrupted" , "InterruptedAtShutdown" , "ExceededTimeLimit" ])
100
+ error_class ("IndexCreationError" , ["CannotCreateIndex" , "IndexOptionsConflict" ,
101
+ "IndexKeySpecsConflict" , "IndexAlreadyExists" ])
0 commit comments