forked from mirrors/linux
		
	libceph: set 'exists' flag for newly up osd
Signed-off-by: Yan, Zheng <zyan@redhat.com> Reviewed-by: Sage Weil <sage@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
		
							parent
							
								
									5fdb1389e1
								
							
						
					
					
						commit
						6dd74e44dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1300,7 +1300,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
 | 
			
		|||
		ceph_decode_addr(&addr);
 | 
			
		||||
		pr_info("osd%d up\n", osd);
 | 
			
		||||
		BUG_ON(osd >= map->max_osd);
 | 
			
		||||
		map->osd_state[osd] |= CEPH_OSD_UP;
 | 
			
		||||
		map->osd_state[osd] |= CEPH_OSD_UP | CEPH_OSD_EXISTS;
 | 
			
		||||
		map->osd_addr[osd] = addr;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue