diff options
author | Eric Milkie <milkie@10gen.com> | 2012-04-24 11:06:04 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-04-24 11:06:04 -0400 |
commit | 6f576584b157e065d0addd43b5d86392f3628b81 (patch) | |
tree | 10d70746abd6f820261adde220e1494624735bcc /src/mongo/db/lasterror.cpp | |
parent | 847a67bf60807b4327b6d0d173c61ed84f522e79 (diff) | |
download | mongo-6f576584b157e065d0addd43b5d86392f3628b81.tar.gz |
rename raiseError to setLastError
This better reflects what this function does. Note that the LastError object
still has a raiseError() function, and that setLastError is just a wrapper
for this internal raiseError().
Diffstat (limited to 'src/mongo/db/lasterror.cpp')
-rw-r--r-- | src/mongo/db/lasterror.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/lasterror.cpp b/src/mongo/db/lasterror.cpp index 40228f23920..4f232f5436b 100644 --- a/src/mongo/db/lasterror.cpp +++ b/src/mongo/db/lasterror.cpp @@ -28,7 +28,7 @@ namespace mongo { LastErrorHolder lastError; bool isShell = false; - void raiseError(int code , const char *msg) { + void setLastError(int code , const char *msg) { LastError *le = lastError.get(); if ( le == 0 ) { /* might be intentional (non-user thread) */ |