| 1942 | } |
| 1943 | |
| 1944 | Status Server::ScriptFlush() { |
| 1945 | auto cf = storage->GetCFHandle(ColumnFamilyID::Propagate); |
| 1946 | engine::Context ctx(storage); |
| 1947 | auto s = storage->FlushScripts(ctx, storage->DefaultWriteOptions(), cf); |
| 1948 | if (!s.ok()) return {Status::NotOK, s.ToString()}; |
| 1949 | ScriptReset(); |
| 1950 | return Status::OK(); |
| 1951 | } |
| 1952 | |
| 1953 | // Generally, we store data into RocksDB and just replicate WAL instead of propagating |
| 1954 | // commands. But sometimes, we need to update inner states or do special operations |