Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-2336 llog: hide the harmless log message
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_cat.c
diff --git
a/lustre/obdclass/llog_cat.c
b/lustre/obdclass/llog_cat.c
index
3fe67f6
..
5ba5300
100644
(file)
--- a/
lustre/obdclass/llog_cat.c
+++ b/
lustre/obdclass/llog_cat.c
@@
-348,8
+348,9
@@
int llog_cat_add_rec(const struct lu_env *env, struct llog_handle *cathandle,
}
/* now let's try to add the record */
rc = llog_write_rec(env, loghandle, rec, reccookie, 1, buf, -1, th);
}
/* now let's try to add the record */
rc = llog_write_rec(env, loghandle, rec, reccookie, 1, buf, -1, th);
- if (rc < 0)
- CERROR("llog_write_rec %d: lh=%p\n", rc, loghandle);
+ if (rc < 0)
+ CDEBUG_LIMIT(rc == -ENOSPC ? D_HA : D_ERROR,
+ "llog_write_rec %d: lh=%p\n", rc, loghandle);
up_write(&loghandle->lgh_lock);
if (rc == -ENOSPC) {
/* try to use next log */
up_write(&loghandle->lgh_lock);
if (rc == -ENOSPC) {
/* try to use next log */