Skip to content

global: call observers (and start logging) in global_init - #226

Closed
liewegas wants to merge 1 commit into
nextfrom
wip-log
Closed

liewegas wants to merge 1 commit into
nextfrom
wip-log

Conversation

@liewegas

Copy link
Copy Markdown
Member

Call observers so that the logging infrastructure gets initailized and we
start logging. Otherwise, unless a default log setting has been modified,
we won't start logging until we daemonize, and we won't get the nice
version banner in the log file.

Unlike the previous attempt to fix this (a309177), we do this after all
of the lockdep initialization has completed.

Signed-off-by: Sage Weil [email protected]

Call observers so that the logging infrastructure gets initailized and we
start logging.  Otherwise, unless a default log setting has been modified,
we won't start logging until we daemonize, and we won't get the nice
version banner in the log file.

Unlike the previous attempt to fix this (a309177), we do this after all
of the lockdep initialization has completed.

Signed-off-by: Sage Weil <[email protected]>
@liewegas liewegas closed this Apr 19, 2013
liewegas pushed a commit that referenced this pull request Dec 14, 2016
prevent undefined values in finally block
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 5, 2021
@markhpc markhpc mentioned this pull request Apr 29, 2022
3 of 14 tasks
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Jun 6, 2022
* rgw_sal_motr: [CORTX-30362] Add & Update User Stats Index Table (ceph#215)

* rgw_sal_motr: [CORTX-30362] Add user stats changes while user/bucket create & delete.

1. User stats index should be created per new user.
2. Add blank entry per bucket in owner user stats index on bucket creation.
3. Delete stats entry on bucket deletion.
4. Delete user stats index table on user deletion.

* rgw_sal_motr: [CORTX-30362] Implement read bucket stats

Bucket Stats are read from Bucket owner's user stats index table.

* rgw_sal_motr: [CORTX-30362] Update Bucket Stats on Object Put/Delete

Update the bucket stats on object create and delete operations.
Object overwrite & Versioned object put is handled.

* rgw_sal_motr: [CORTX-30362] Fix zero byte object issue & code refactoring.

Size of zero byte object and the default size of old object when it is
abscent is '0'. Thus there was no distinction between the two cases.
This was causing the issue, fixed the same by adding a new boolean var
for distinction.

* rgw_sal_motr: [CORTX-30362] Fix versioning bug in bucket stats

Old Object size of getting reduced while uploading a new object
for versioned object. Fixing the same.

Signed-off-by: Sumedh A. Kulkarni <[email protected]>

* User level stats counting for Motr SAL layer (ceph#226)

Signed-off-by: Diwakar92 <[email protected]>

Co-authored-by: Sumedh Anantrao Kulkarni <[email protected]>

* rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets (ceph#242)

* rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets

- next_query_by_name() crashes when zero entries are returned and so does
  list_buckets() and read_stats().
- Fixing the issue by returning 0 when no entries are present in the index.

Signed-off-by: Sumedh A. Kulkarni <[email protected]>

Co-authored-by: Diwakar92 <[email protected]>
jecluis pushed a commit to jecluis/ceph that referenced this pull request Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant