[SERVER-26963] Coverity analysis defect 100037: Copy-paste error Created: 09/Nov/16  Updated: 05/Apr/17  Resolved: 09/Nov/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Keith Bostic (Inactive)
Resolution: Done Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to WT-2998 Add error messages to error returns t... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

A copied piece of code is inconsistent with the original

Defect 100037 (STATIC_C)
Checker COPY_PASTE_ERROR (subcategory none)
File: /src/third_party/wiredtiger/src/cursor/cur_join.c
Function __wt_curjoin_open
/src/third_party/wiredtiger/src/cursor/cur_join.c, line: 1314
"__wt_unexpected_object_type(session, uri, "join:")" looks like the original copy.

    		return (__wt_unexpected_object_type(session, uri, "join:"));

/src/third_party/wiredtiger/src/cursor/cur_join.c, line: 1317
"uri" in "__wt_unexpected_object_type(session, uri, "table:")" looks like a copy-paste error.

    		return (__wt_unexpected_object_type(session, uri, "table:"));



 Comments   
Comment by Keith Bostic (Inactive) [ 09/Nov/16 ]

This is a false positive.

A fix has been submitted as part of WT-3011, so this warning should go away as part of the next drop.

Generated at Thu Feb 08 04:13:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.