Skip to content

Commit

Permalink
SERVER-1625 Typo in journalformat caused int to be pointer to data
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Ola Ingvarsson committed Aug 6, 2011
1 parent 0961376 commit 29fd8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/dur_journalformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace mongo {
// char data[len] follows

const char * srcData() const {
return (const char *) (_fileNo + 1 );
return (const char *) (&_fileNo + 1 );
}

int getFileNo() const { return _fileNo & (~LocalDbBit); }
Expand Down

0 comments on commit 29fd8d2

Please sign in to comment.