主权项 |
1. A method, comprising:
receiving a request to add a new value to a first bitmap, wherein the first bitmap includes a first plurality of bits, each of the first plurality of bits corresponding to one or more values of a data structure, wherein one or more readers are accessing the first plurality of bits, and wherein includes a bit sequence corresponding to a most recently added value; determining that the first bitmap has exceeded a threshold, wherein the threshold indicates when a new bitmap is to be generated; generating a second bitmap, the second bitmap including a second plurality of bits that is more than the first plurality of bits, each of the second plurality of bits corresponding to one or more values of the data structure, including the new value, and wherein the second bitmap is below the threshold; and deleting the first bitmap based upon a determination that there are no more readers accessing the first plurality of bits. |