github.com/matrixorigin/matrixone@v0.7.0/test/distributed/cases/dml/update/flush.result (about)

     1  drop database if exists db1;
     2  create database db1;
     3  use db1;
     4  drop table if exists t;
     5  create table t (a int);
     6  insert into t values (1), (2), (3), (4), (5);
     7  select mo_ctl('dn', 'flush', 'db1.t');
     8  mo_ctl(dn, flush, db1.t)
     9  {\n  "method": "Flush",\n  "result": [\n    {\n      "returnStr": "OK"\n    }\n  ]\n}\n
    10  select * from t;
    11  a
    12  1
    13  2
    14  3
    15  4
    16  5
    17  delete from t where a in (1, 2, 3);
    18  begin;
    19  select mo_ctl('dn', 'flush', 'db1.t');
    20  mo_ctl(dn, flush, db1.t)
    21  {\n  "method": "Flush",\n  "result": [\n    {\n      "returnStr": "OK"\n    }\n  ]\n}\n
    22  select * from t;
    23  a
    24  4
    25  5
    26  commit;
    27  drop table if exists t;
    28  create table t (a int);
    29  insert into t values (1), (2), (3), (4), (5);
    30  delete from t where a = 2;
    31  insert into t values (6);
    32  delete from t where a = 3;
    33  begin;
    34  select mo_ctl('dn', 'flush', 'db1.t');
    35  mo_ctl(dn, flush, db1.t)
    36  {\n  "method": "Flush",\n  "result": [\n    {\n      "returnStr": "OK"\n    }\n  ]\n}\n
    37  select * from t;
    38  a
    39  1
    40  4
    41  5
    42  6
    43  commit;
    44  drop database if exists db1;