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

lsm_merge.c: dead assignment

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.3.0
    • Affects Version/s: None
    • Component/s: None

      @agorrod, in __wt_lsm_merge:

          387
          388         ret = __wt_lsm_merge_update_tree(
          389             session, lsm_tree, start_chunk, nchunks, chunk);
          390
          391         if (create_bloom)
          392                 F_SET(chunk, WT_LSM_CHUNK_BLOOM);
          393         chunk->count = insert_count;
          394         chunk->generation = generation;
          395         F_SET(chunk, WT_LSM_CHUNK_ONDISK);
          396
          397         ret = __wt_lsm_meta_write(session, lsm_tree);
          398         lsm_tree->dsk_gen++;
      

      the ret assignment on line 388 is never subsequently read.

      Can you please fix this one?

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: