summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharding_ddl_util.h
diff options
context:
space:
mode:
authorAntonio Fuschetto <antonio.fuschetto@mongodb.com>2023-03-09 20:08:08 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-09 20:52:59 +0000
commitb01ba75c76f72bc82167662fdf3c55eb24085acb (patch)
treedc1e9d2bee0b4f0a45d9b5acf57a64f323f68a16 /src/mongo/db/s/sharding_ddl_util.h
parent52c4ac5618a6325a69cf68ab498ff3f5b0590b90 (diff)
downloadmongo-b01ba75c76f72bc82167662fdf3c55eb24085acb.tar.gz
SERVER-74185 Support for cleanup in Recoverable Sharding DDL Coordinator
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_util.h')
-rw-r--r--src/mongo/db/s/sharding_ddl_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/s/sharding_ddl_util.h b/src/mongo/db/s/sharding_ddl_util.h
index cc800b04632..988d2bb571a 100644
--- a/src/mongo/db/s/sharding_ddl_util.h
+++ b/src/mongo/db/s/sharding_ddl_util.h
@@ -40,6 +40,14 @@
#include "mongo/s/request_types/sharded_ddl_commands_gen.h"
namespace mongo {
+
+// TODO (SERVER-74481): Define these functions in the nested `sharding_ddl_util` namespace when the
+// IDL compiler will support the use case.
+void sharding_ddl_util_serializeErrorStatusToBSON(const Status& status,
+ StringData fieldName,
+ BSONObjBuilder* bsonBuilder);
+Status sharding_ddl_util_deserializeErrorStatusFromBSON(const BSONElement& bsonElem);
+
namespace sharding_ddl_util {
/**