主权项 |
1. A non-transitory computer-readable storage medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising:
receiving a request to increase the redundancy level of a file stored in a first data store; producing a number of rateless erasure codes to be provided from a second data store to a third data store to increase the redundancy level of the file, where the number of rateless erasure codes is controlled by a redundancy policy, where the redundancy policy identifies a total number of rateless erasure codes to be stored and a minimum number of rateless erasure codes to be stored, where the minimum number is less than the total number; providing the minimum number of rateless erasure codes to the third data store using a synchronous approach; determining a remaining number of rateless erasure codes equal to the difference between the total number and the minimum number; upon determining that the minimum number of rateless erasure codes have been stored in the third data store:
providing the remaining number of rateless erasure codes to the third data store using an asynchronous approach; and upon determining that the total number of rateless erasure codes have been stored by the third data store, sending a signal to the first data store indicating that the total number of rateless erasure codes have been stored in the third data store. |