Return bool in SizeCountStore::write() and SizeCountTimestampStore::write()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Many APIs use an "upsert" pattern where the write/insert method returns a bool indicating whether the document already existed (i.e., whether it was an update vs. an insert). This is useful for callers that need to know if they're initializing state for the first time vs. updating existing state.

      Update both write implementations to return a bool, and assert that this is false during setup and true during subsequent updates.

            Assignee:
            Cedric Sirianni
            Reporter:
            Cedric Sirianni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: