Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8784

Fix invalid S3CacheExists if condition

    • 1
    • Storage - Ra 2022-02-07

      Summary
      There is an invalid if condition when checking if a file exists in the cache, in the S3 storage source extension, which causes the exist variable to hold the wrong value. This bug was introduced in WT-8712, when refactoring some of the code.

      Suggested Solution
      InĀ ext/storage_sources/s3_store/s3_storage_source.cpp on line 101, change:

      if (*exist = !S3CacheExists(fileSystem, name))
      

      to

      if (*exist = S3CacheExists(fileSystem, name) == false)
      

            Assignee:
            fiona.ochee@mongodb.com Fiona O'Chee (Inactive)
            Reporter:
            fiona.ochee@mongodb.com Fiona O'Chee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: