You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: Server: How to Promote a Database Node?

This operation is used to promote a database node. After promotion, the node is considered as a Member.

Syntax

public PromoteDatabaseNodeOperation(string databaseName, string node)

Parameters
databaseName string Name of a database
node string Node tag to promote into database group Member

Example

PromoteDatabaseNodeOperation promoteOperation = new PromoteDatabaseNodeOperation("Northwind", "C");
store.Maintenance.Server.Send(promoteOperation);