]>
git.proxmox.com Git - ceph.git/blob - ceph/src/mds/SimpleLock.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2015 Red Hat
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
16 #include "SimpleLock.h"
19 void SimpleLock::dump(Formatter
*f
) const {
21 if (is_sync_and_unlocked()) {
25 f
->open_array_section("gather_set");
27 for(const auto &i
: more()->gather_set
) {
28 f
->dump_int("rank", i
);
33 f
->dump_bool("is_leased", is_leased());
34 f
->dump_int("num_rdlocks", get_num_rdlocks());
35 f
->dump_int("num_wrlocks", get_num_wrlocks());
36 f
->dump_int("num_xlocks", get_num_xlocks());
37 f
->open_object_section("xlock_by");
39 get_xlock_by()->dump(f
);