summaryrefslogtreecommitdiff
path: root/src/mds/LogEvent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds/LogEvent.cc')
-rw-r--r--src/mds/LogEvent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/LogEvent.cc b/src/mds/LogEvent.cc
index c4f18c756a9..b775b6d9501 100644
--- a/src/mds/LogEvent.cc
+++ b/src/mds/LogEvent.cc
@@ -77,7 +77,7 @@ LogEvent *LogEvent::decode_event(bufferlist& bl, bufferlist::iterator& p, __u32
case EVENT_RESETJOURNAL: le = new EResetJournal; break;
case EVENT_SESSION: le = new ESession; break;
- case EVENT_SESSIONS_OLD: le = new ESessions; ((ESessions *)le)->mark_old_encoding(); break;
+ case EVENT_SESSIONS_OLD: le = new ESessions; (static_cast<ESessions *>(le))->mark_old_encoding(); break;
case EVENT_SESSIONS: le = new ESessions; break;
case EVENT_UPDATE: le = new EUpdate; break;