📄 replicationslavestorage.cs
字号:
namespace Perst
{
/// <summary>
/// Storage reciving modified pages from replication master and
/// been able to run read-only transactions
/// </summary>
public interface ReplicationSlaveStorage : Storage
{
/// <summary>
/// Check if socket is connected to the master host
/// </summary>
/// <returns><code>true</code> if connection between slave and master is sucessfully established</returns>
bool IsConnected();
/// <summary>
/// Wait until database is modified by master
/// This method blocks current thread until master node commits trasanction and
/// this transanction is completely delivered to this slave node
/// </summary>
void WaitForModification();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -