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

Coverity : Copy paste error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc4, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2020-05-04

       

      https://coverity.corp.mongodb.com/reports.htm#v15469/p10049/fileInstanceId=29747495&defectInstanceId=19679382&mergedDefectId=114114

       

      Update the code as per the below diff

       diff --git a/test/format/bulk.c b/test/format/bulk.c
      index 0f41a311e..ebe4a72c9 100644
      --- a/test/format/bulk.c
      +++ b/test/format/bulk.c
      @@ -175,15 +175,8 @@ wts_load(void)
                       g.c_delete_pct += g.c_insert_pct - 5;
                       g.c_insert_pct = 5;
                   }
      -            if (g.c_delete_pct < 20) {
      -                g.c_delete_pct += g.c_write_pct / 2;
      -                g.c_write_pct = g.c_write_pct / 2;
      -            }
      -            if (g.c_delete_pct < 20) {
      -                g.c_delete_pct += g.c_modify_pct / 2;
      -                g.c_write_pct = g.c_modify_pct / 2;
      -            }
      -            break;
      +           g.c_delete_pct += g.c_write_pct / 2;
      +           g.c_write_pct = g.c_write_pct / 2;
               }
           }

       

       

            Assignee:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Reporter:
            ravi.giri@mongodb.com Ravi Giri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: