CPC G06F 16/178 (2019.01) [G06F 16/13 (2019.01); G06F 16/148 (2019.01); G06F 16/172 (2019.01); G06F 16/1844 (2019.01); G06F 16/2365 (2019.01)] | 17 Claims |
1. A computer-implemented method of maintaining consistency in a distributed file system coupled to a computer network, the method comprising:
receiving a request to create or change a file and, before any data of the file to be created or changed is stored, sequentially:
assigning a unique global sequence number to the creation of or change to the file;
storing, in a first cache memory coupled to a first data replication server in the computer network and in a second cache memory coupled to a second data replication server in the computer network, the assigned unique global sequence number and metadata of the file to be created or changed, such that states of the first and second cache memories are consistent at the unique global sequence number; and
after the first and second cache memories are consistent at the unique global sequence number, enabling data that corresponds to the metadata stored in the first and second cache memories to be written to the file to be created or changed.
|