diff --git a/js/common/bootstrap/errors.js b/js/common/bootstrap/errors.js index ea1f08e309..b74714be62 100644 --- a/js/common/bootstrap/errors.js +++ b/js/common/bootstrap/errors.js @@ -260,6 +260,7 @@ "ERROR_MODULE_FAILURE" : { "code" : 3103, "message" : "failed to invoke module" }, "ERROR_NO_SMART_COLLECTION" : { "code" : 4000, "message" : "collection is not smart" }, "ERROR_NO_SMART_GRAPH_ATTRIBUTE" : { "code" : 4001, "message" : "smart graph attribute not given" }, + "ERROR_CANNOT_DROP_SMART_COLLECTION" : { "code" : 4002, "message" : "cannot drop this smart collection" }, "ERROR_DISPATCHER_IS_STOPPING" : { "code" : 21001, "message" : "dispatcher stopped" }, "ERROR_QUEUE_UNKNOWN" : { "code" : 21002, "message" : "named queue does not exist" }, "ERROR_QUEUE_FULL" : { "code" : 21003, "message" : "named queue is full" } diff --git a/lib/Basics/voc-errors.cpp b/lib/Basics/voc-errors.cpp index 4d596dea85..409ad4ebcc 100644 --- a/lib/Basics/voc-errors.cpp +++ b/lib/Basics/voc-errors.cpp @@ -256,6 +256,7 @@ void TRI_InitializeErrorMessages () { REG_ERROR(ERROR_MODULE_FAILURE, "failed to invoke module"); REG_ERROR(ERROR_NO_SMART_COLLECTION, "collection is not smart"); REG_ERROR(ERROR_NO_SMART_GRAPH_ATTRIBUTE, "smart graph attribute not given"); + REG_ERROR(ERROR_CANNOT_DROP_SMART_COLLECTION, "cannot drop this smart collection"); REG_ERROR(ERROR_DISPATCHER_IS_STOPPING, "dispatcher stopped"); REG_ERROR(ERROR_QUEUE_UNKNOWN, "named queue does not exist"); REG_ERROR(ERROR_QUEUE_FULL, "named queue is full"); diff --git a/lib/Basics/voc-errors.h b/lib/Basics/voc-errors.h index d0412e1ed4..7ee29e1a27 100644 --- a/lib/Basics/voc-errors.h +++ b/lib/Basics/voc-errors.h @@ -609,6 +609,9 @@ /// The requested collection needs to be smart, but it ain't /// - 4001: @LIT{smart graph attribute not given} /// The given document does not have the smart graph attribute set. +/// - 4002: @LIT{cannot drop this smart collection} +/// This smart collection cannot be dropped, it dictates sharding in the +/// graph. /// - 21001: @LIT{dispatcher stopped} /// Will be returned if a shutdown is in progress. /// - 21002: @LIT{named queue does not exist} @@ -3219,6 +3222,16 @@ void TRI_InitializeErrorMessages (); #define TRI_ERROR_NO_SMART_GRAPH_ATTRIBUTE (4001) +//////////////////////////////////////////////////////////////////////////////// +/// @brief 4002: ERROR_CANNOT_DROP_SMART_COLLECTION +/// +/// cannot drop this smart collection +/// +/// This smart collection cannot be dropped, it dictates sharding in the graph. +//////////////////////////////////////////////////////////////////////////////// + +#define TRI_ERROR_CANNOT_DROP_SMART_COLLECTION (4002) + //////////////////////////////////////////////////////////////////////////////// /// @brief 21001: ERROR_DISPATCHER_IS_STOPPING ///