summaryrefslogtreecommitdiff
path: root/src/mongo/db/lasterror.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-04-24 11:06:04 -0400
committerEric Milkie <milkie@10gen.com>2012-04-24 11:06:04 -0400
commit6f576584b157e065d0addd43b5d86392f3628b81 (patch)
tree10d70746abd6f820261adde220e1494624735bcc /src/mongo/db/lasterror.cpp
parent847a67bf60807b4327b6d0d173c61ed84f522e79 (diff)
downloadmongo-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.cpp2
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) */